import { Button } from 'antd'
import { useState } from 'react'

type user = {
  name:string
}
function App() {
  const [count, setCount] = useState<user>({
    name:'123'
  })
  // setCount({
  //   name:'fsdf'
  // })

  return (
    <>
      <div className='aa'>
      123
      {count?.name}
      </div>
     <Button type='primary'>123456</Button>
      <button onClick={()=>setCount({name:'456'})}>点击</button>
    </>
  )
}
export default App
